<?php
/**
 * /depot/library/mvc-helper/ActionHelper/Message.php
 * @author qqinxl
 * 2008/03/26
 * 
 * @category  
 * @package  
 * @copyright  Copyright (c) {}
 */
class ActionHelper_Message extends Zend_Controller_Action_Helper_Abstract {
	
	public function set($imageType = null) {
		if(empty($this->getActionController ()->view->imgageType)){
			$this->getActionController ()->view->imgageType = empty($imageType)?Htmlhelper_Img::IMG_COMMENTS:$imageType;
		}
		if ($this->getRequest ()->isXmlHttpRequest () or $this->_pageInfo->isAjaxHttpRequest()) {
			$this->getActionController ()->render ( 'message' );
		} else {
			$this->getActionController ()->render ();
		}
	}
}